package com.boxing.callback;

import java.util.ArrayList;
import java.util.List;

public class Teacher {

    private List<? extends CallBack> stuArr = new ArrayList<>();

    public Teacher() {

    }

    public List<? extends CallBack> getStuArr() {
        return stuArr;
    }

    public void setStuArr(List<? extends CallBack> stuArr) {
        this.stuArr = stuArr;
    }

    public void sk(){
        System.out.println("老师说上课了");
        for(CallBack item : stuArr) {
            item.sk();
        }
    }
}
